package com.bookcode.service.impl;
import com.bookcode.dao.CityDao;
import com.bookcode.entity.City;
import com.bookcode.service.CityService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class CityServiceImpl implements CityService {
    @Resource
    private CityDao cityDao;
    public List <City> findCityByName(String cityName) {
        return cityDao.findByName(cityName);
    }
}
